FROM openjdk:8-jdk-alpine

ARG jar=cdcdemo.jar
ARG profile=uat

ENV SPRING_PROFILES_ACTIVE ${profile}

ADD target/${jar} app.jar

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]